﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Global
{
    public static class Default
    {
        public struct SETTINGS
        {
            public static bool IS_VOCABULARY = true;
            public static bool IS_NOTE = false;

            public static bool IS_BEFORE_DATE_CHECKED = false;
            public static bool IS_AFTER_DATE_CHECKED = false;

            public static int DISPLAY_TIME = 7; //seconds
            public static int WAITING_TIME = 3;

            //0 -> very easy
            //1 -> easy
            //2 -> normal
            //3 -> hard
            //4 -> very hard
            public static int DEFAULT_RATE = 4;
        }

        public static void ReverseResultToDefault()
        {
            Settings.IS_VOCABULARY = Default.SETTINGS.IS_VOCABULARY;
            Settings.IS_NOTE = Default.SETTINGS.IS_NOTE;
        }

        public static void ReverseAllToDefault()
        {
            Settings.IS_VOCABULARY = Default.SETTINGS.IS_VOCABULARY;
            Settings.IS_NOTE = Default.SETTINGS.IS_NOTE;
            Settings.DISPLAY_TIME = Default.SETTINGS.DISPLAY_TIME;
            Settings.WAITING_TIME = Default.SETTINGS.WAITING_TIME;
            Settings.IS_BEFORE_DATE_CHECKED = Default.SETTINGS.IS_BEFORE_DATE_CHECKED;
            Settings.IS_AFTER_DATE_CHECKED = Default.SETTINGS.IS_AFTER_DATE_CHECKED;
        }
    }
}
